import request from '@/utils/request'

//服务商列表
export function userList(params?: any) {
    return request.get({ url: '/server.server/userList', params })
}

//保存服务商信息
export function saveUser(params: any) {
    return request.post({ url: '/server.server/saveUser', params })
}

//服务商详情
export function userInfo(params?: any) {
    return request.get({ url: '/server.server/userInfo', params })
}
//服务商标签
export function serviceTag(params?: any) {
    return request.get({ url: '/server.server/tagList', params })
}

//删除服务商
export function delUser(params: any) {
    return request.post({ url: '/server.server/delUser', params })
}
//启用/禁用服务商
export function changeStatus(params: any) {
    return request.post({ url: '/server.server/changeStatus', params })
}

//分类列表
export function cateList(params?: any) {
    return request.get({ url: '/server.server/cateList', params })
}

//保存分类
export function saveCate(params: any) {
    return request.post({ url: '/server.server/saveCate', params })
}

//删除分类
export function delCate(params: any) {
    return request.post({ url: '/server.server/delCate', params })
}

//服务商审核通过
export function passUser(params: any) {
    return request.post({ url: '/server.server/passUser', params })
}
//服务商审核驳回
export function rejectUser(params: any) {
    return request.post({ url: '/server.server/rejectUser', params })
}

//发送表单通知
export function sendTable(params: any) {
    return request.post({ url: '/server.server/sendTable', params })
}
//获取表单详情
export function getDetail(params?: any) {
    return request.get({ url: '/server.server/getDetail', params })
}
//表单审核通过
export function passDetail(params: any) {
    return request.post({ url: '/server.server/passDetail', params })
}
//表单审核通过
export function rejectDetail(params: any) {
    return request.post({ url: '/server.server/rejectDetail', params })
}

//商品列表
export function goodsList(params?: any) {
    return request.get({ url: '/server.server/goodsList', params })
}
//商品详情
export function goodInfo(params?: any) {
    return request.get({ url: '/server.server/goodInfo', params })
}
//获取服务商分类
export function userCate(params?: any) {
    return request.get({ url: '/server.server/userCate', params })
}
//保存商品
export function saveGood(params: any) {
    return request.post({ url: '/server.server/saveGood', params })
}
//保存sku
export function saveGoodSku(params: any) {
    return request.post({ url: '/server.server/saveGoodSku', params })
}
//删除sku
export function delGoodSku(params: any) {
    return request.post({ url: '/server.server/delGoodSku', params })
}
//删除商品
export function delGoods(params: any) {
    return request.post({ url: '/server.server/delGoods', params })
}
//商品上/下架
export function changeGoodStatus(params: any) {
    return request.post({ url: '/server.server/changeGoodStatus', params })
}
// 订单列表
export function orderList(params?: any) {
    return request.get({ url: '/server.server/orderList', params })
}
// 订单详情
export function orderInfo(params?: any) {
    return request.get({ url: '/server.server/orderInfo', params })
}
// 退款
export function backMoney(params: any) {
    return request.post({ url: '/server.server/backMoney', params })
}
// 分账
export function fenzhang(params: any) {
    return request.post({ url: '/server.server/fenzhang', params })
}
// 保证金流水
export function bondOrderList(params?: any) {
    return request.get({ url: '/server.server/bondOrderList', params })
}
// 服务商订单列表
export function serverOrderList(params?: any) {
    return request.get({ url: '/server.server/serverOrderList', params })
}
// 订单提现
export function withdrawOrder(params: any) {
    return request.post({ url: '/server.server/withdrawOrder', params })
}
// 服务商下架
export function downServer(params: any) {
    return request.post({ url: '/server.server/downServer', params })
}
// 设置是否官方
export function setOfficial(params: any) {
    return request.post({ url: '/server.server/setOfficial', params })
}